package net.vkits.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.dozer.Mapping;

import java.util.Objects;



/**
 * 历史订单
 **/

/**
 * 历史订单
 */
@ApiModel(description = "历史订单")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-10-27T05:49:23.577Z")

public class HistoryOrder   {
  @Mapping("id")
  private String id = null;
    @Mapping("originalOrder.amount")
  private String amount = null;

  private String ordertype = null;

  private String finishtime = null;

  private String account = null;

  private String bank = null;

  private String repaymentDate = null;

  public HistoryOrder id(String id) {
    this.id = id;
    return this;
  }

   /**
   * 订单ID
   * @return id
  **/
  @ApiModelProperty(value = "订单ID")
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public HistoryOrder amount(String amount) {
    this.amount = amount;
    return this;
  }

   /**
   * 订单金额
   * @return amount
  **/
  @ApiModelProperty(value = "订单金额")
  public String getAmount() {
    return amount;
  }

  public void setAmount(String amount) {
    this.amount = amount;
  }

  public HistoryOrder ordertype(String ordertype) {
    this.ordertype = ordertype;
    return this;
  }

   /**
   * 订单类型
   * @return ordertype
  **/
  @ApiModelProperty(value = "订单类型")
  public String getOrdertype() {
    return ordertype;
  }

  public void setOrdertype(String ordertype) {
    this.ordertype = ordertype;
  }

  public HistoryOrder finishtime(String finishtime) {
    this.finishtime = finishtime;
    return this;
  }

   /**
   * 订单完成时间
   * @return finishtime
  **/
  @ApiModelProperty(value = "订单完成时间")
  public String getFinishtime() {
    return finishtime;
  }

  public void setFinishtime(String finishtime) {
    this.finishtime = finishtime;
  }

  public HistoryOrder account(String account) {
    this.account = account;
    return this;
  }

   /**
   * 订单支付账号
   * @return account
  **/
  @ApiModelProperty(value = "订单支付账号")
  public String getAccount() {
    return account;
  }

  public void setAccount(String account) {
    this.account = account;
  }

  public HistoryOrder bank(String bank) {
    this.bank = bank;
    return this;
  }

   /**
   * 发卡银行
   * @return bank
  **/
  @ApiModelProperty(value = "发卡银行")
  public String getBank() {
    return bank;
  }

  public void setBank(String bank) {
    this.bank = bank;
  }

  public HistoryOrder repaymentDate(String repaymentDate) {
    this.repaymentDate = repaymentDate;
    return this;
  }

   /**
   * 信用卡还款日
   * @return repaymentDate
  **/
  @ApiModelProperty(value = "信用卡还款日")
  public String getRepaymentDate() {
    return repaymentDate;
  }

  public void setRepaymentDate(String repaymentDate) {
    this.repaymentDate = repaymentDate;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    HistoryOrder historyOrder = (HistoryOrder) o;
    return Objects.equals(this.id, historyOrder.id) &&
        Objects.equals(this.amount, historyOrder.amount) &&
        Objects.equals(this.ordertype, historyOrder.ordertype) &&
        Objects.equals(this.finishtime, historyOrder.finishtime) &&
        Objects.equals(this.account, historyOrder.account) &&
        Objects.equals(this.bank, historyOrder.bank) &&
        Objects.equals(this.repaymentDate, historyOrder.repaymentDate);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, amount, ordertype, finishtime, account, bank, repaymentDate);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class HistoryOrder {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
    sb.append("    ordertype: ").append(toIndentedString(ordertype)).append("\n");
    sb.append("    finishtime: ").append(toIndentedString(finishtime)).append("\n");
    sb.append("    account: ").append(toIndentedString(account)).append("\n");
    sb.append("    bank: ").append(toIndentedString(bank)).append("\n");
    sb.append("    repaymentDate: ").append(toIndentedString(repaymentDate)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

